<template>
  <div className="app-file">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>

<script>
export default {
  provide() {
    return {
      reloadAll: this.reloadAll
    }
  },
  data() {
    return {
      isRouterAlive: true
    }
  },
  methods: {
    reloadAll() {
      this.isRouterAlive = false
      this.$nextTick(() => {
        this.isRouterAlive = true
      })
    }
  }
}
</script>

<style lang="scss" scoped>
</style>